package com.cbg.service;

import com.cbg.interceptor.PageParam;
import com.cbg.pojo.RoleBean;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

/**
 * Created by chenboge on 2017/5/12.
 * <p>
 * Email:baigegechen@gmail.com
 * <p>
 * description:
 */
public interface RoleService {

    public int insertRole(RoleBean bean);

    public int updateRole(RoleBean bean);

    public int deleteRole(Integer id);

    public RoleBean getRole(Integer id);

    public List<RoleBean> queryRolesByPage(String roleName, int start, int limit);

    public List<RoleBean> queryRoleslimit(int page,int pageSize);
}
